<?php
class MY_Controller extends CI_Controller {

    function __construct() {
		parent::__construct();
		$this->data['user_info'] = $this->session->userdata('user_info');
		$this->data['module'] = $this->session->userdata('module');
		$RTR =& load_class('Router');
		$current['sub_module'] = $RTR->fetch_method(); 
		$current['sub_module'] = explode('_', $current['sub_module']);
		$current['sub_module'] = $current['sub_module'][0];
		$current['module'] = $RTR->fetch_class(); 
		$this->data['current'] = $current;
    }
}
